package org.ibase4j.provider.scheduler;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.ibase4j.core.support.dubbo.spring.annotation.DubboService;
import org.ibase4j.model.scheduler.GithubRepo;
import org.ibase4j.provider.scheduler.pipeline.GitHubRepoDaoPipeline;
import org.ibase4j.provider.sys.IGitHubRepoProvider;
import org.ibase4j.provider.sys.ISysSessionProvider;
import org.springframework.beans.factory.annotation.Autowired;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.model.ConsolePageModelPipeline;
import us.codecraft.webmagic.model.OOSpider;

/**
 * Created by zuowen on 2016/11/15.
 */

@DubboService(interfaceClass = SpiderTaskProvider.class)
public class SpiderTaskService implements  SpiderTaskProvider {

    private final Logger logger = LogManager.getLogger();

    @Autowired
    private IGitHubRepoProvider  iGitHubRepoProvider;

    @Override
    public void spiderGithubRepo() {
        iGitHubRepoProvider.spiderGitHub();
    }
}
